package com.lframework.starter.web.inner.bo.system.tenant;

import com.lframework.starter.web.core.annotations.constants.EncryType;
import com.lframework.starter.web.core.annotations.convert.EncryptConvert;
import com.lframework.starter.web.core.bo.BaseBo;
import com.lframework.starter.web.inner.entity.Tenant;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
public class GetTenantBo extends BaseBo<Tenant> {

    /**
     * ID
     */
    @ApiModelProperty("ID")
    private String id;

    /**
     * 名称
     */
    @ApiModelProperty("名称")
    private String name;

    /**
     * JdbcUrl
     */
    @ApiModelProperty("JdbcUrl")
    @EncryptConvert
    private String jdbcUrl;

    /**
     * Jdbc用户名
     */
    @ApiModelProperty("Jdbc用户名")
    @EncryptConvert
    private String jdbcUsername;

    /**
     * Jdbc密码
     */
    @ApiModelProperty("Jdbc密码")
    @EncryptConvert(type = EncryType.PASSWORD)
    private String jdbcPassword;

    /**
     * 状态
     */
    @ApiModelProperty("状态")
    private Boolean available;

    public GetTenantBo(Tenant dto) {
        super(dto);
    }
}
